var api = require('../../util/api.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    api.chain({
      mode: 'VIEW'
    });
    api.get(api.url.examineList, {
      subType: 1,
      'params[sql]': "and status !='0'"
    }).then(res => {
      this.setData({
        contestList: res.rows
      })
    });
  },

  intoSystem: function (n) {
    api.chain({
      examineId: n.currentTarget.dataset.examineid,
      userId: api.getSysUser().userId,
      userName: api.getSysUser().userName
    });
    wx.navigateTo({
      url: `../examine_item/score`
    })

  }
})